package com.gelapps.memogel;

import java.util.ArrayList;

import com.gelapps.memogel.accounts.AccountsMaster;
import com.gelapps.memogel.cards.CardsMaster;
import com.gelapps.memogel.credentials.CredentialMaster;

public class ExampleData {
	
	/**
	 * Funzione per l'inserimento di dati di esempio delle carte
	 * @return
	 */
	public static ArrayList<CardsMaster> getCardExample()
	{
		ArrayList<CardsMaster> ret = new ArrayList<CardsMaster>();
		
		CardsMaster c1 = new CardsMaster();
		c1.setName("N.Cards1");
		c1.setNumber("0000 0000 0000 0000");
		c1.setCircuits("Visa");
		c1.setBalance("100.00");
		c1.setBank("Bank 1");
		c1.setCVV("000");
		c1.setExpiry("21/02/2014");
		c1.setNote("Prepagate cards");
		c1.setPhoneToBlock("+39 334 2523521");
		c1.setPin("00000");
		c1.setWebSite("http://www.mybank.com");
        c1.setHolder("Ciccio Franco");
        c1.setBillAddress("via roma 1, 63087 Comunanza (AP)");
		ret.add(c1);
		
		CardsMaster c2 = new CardsMaster();
		c2.setName("N.Cards2");
		c2.setNumber("1111 1111 1111 1111");
		c2.setCircuits("Master Card");
		c2.setBalance("211.11");
		c2.setBank("Bank 2");
		c2.setCVV("111");
		c2.setExpiry("22/12/2024");
		c2.setNote("Prepagate cards");
		c2.setPhoneToBlock("+39 333 5423522");
		c2.setPin("11111");
		c2.setWebSite("http://www.mysecond.com");
        c2.setHolder("Rossi Marty");
        c2.setBillAddress("via Comunanza 2, 00112 Roma (RM)");
		ret.add(c2);

		return ret;
	}

	
	public static ArrayList<CredentialMaster> getCredentialExample() {
		ArrayList<CredentialMaster> ret = new ArrayList<CredentialMaster>();
		
		CredentialMaster c1 = new CredentialMaster();
		c1.setName("Credentials 1");
		c1.setUser("User1");
		c1.setPass("pass1");
		c1.setDateCreated("05/03/2012-1");
		c1.setDateLastUsed("06/02/2013-1");
		c1.setDataExpiry("05/03/2013-1");
		c1.setSite("www.111.11");
		c1.setNote("note1");
		ret.add(c1);

		CredentialMaster c2 = new CredentialMaster();
		c2.setName("Credentials 2");
		c2.setUser("User2");
		c2.setPass("pass2");
		c2.setDateCreated("05/03/2012-2");
		c2.setDateLastUsed("06/02/2013-2");
		c2.setDataExpiry("05/03/2013-2");
		c2.setSite("www.222.22");
		c2.setNote("note2");
		ret.add(c2);
		
		return ret;
	}
    
    public static ArrayList<AccountsMaster> getAccountExample(){
        ArrayList<AccountsMaster> ret = new ArrayList<AccountsMaster>();
        
        AccountsMaster a1 = new AccountsMaster();
        a1.setName("WebSite 1");
        a1.setServer("ftp://191.111.2.1");
        a1.setPath("/");
        a1.setUsername("UsernameAcc1");
        a1.setPassword("PassAcc1");
        a1.setProvider("Provider1");
        a1.setProviderWebSite("www.provider.com");
        a1.setProviderPhone("+001342423");
        a1.setNote("Note acc1");
        ret.add(a1);

        AccountsMaster a2 = new AccountsMaster();
        a2.setName("WebSite 2");
        a2.setServer("ftp://182.222.2.2");
        a2.setPath("/b/");
        a2.setUsername("UsernameAcc2");
        a2.setPassword("PassAcc2");
        a2.setProvider("Provider2");
        a2.setProviderWebSite("www.provider-t.com");
        a2.setProviderPhone("+002232342423");
        a2.setNote("Note acc2");
        ret.add(a2);
        
        return ret;
    }
}
